<?php

namespace app\api\validate\mall;

use think\Validate;

class Refund extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'id' => 'require|number',
        'refund_type' => 'require|number',
        'refund_reason' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'id.require' => '参数id不能为空',
        'id.number' => '参数id格式错误',
        'refund_type' => '退款类型不能为空',
        'refund_type.number' => '退款类型格式错误',
        'refund_reason.require' => '退款原因不能为空',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add' => [],
        'edit' => [],
    ];

}
